From: kaf24@firebug.cl.cam.ac.uk Date: Sat, 22 Apr 2006 08:45:45 +0000 (+0100) Subject: Fix VM_RESERVED check in vm_normal_page(). Pointed out by X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16117^2~27 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=83d83bb96649d5d76deca90ebe604686c221ec5f;p=xen.git Fix VM_RESERVED check in vm_normal_page(). Pointed out by Isaku Yamahata. Signed-off-by: Keir Fraser --- diff --git a/linux-2.6-xen-sparse/mm/memory.c b/linux-2.6-xen-sparse/mm/memory.c index f91d3bab09..3482a6bcf7 100644 --- a/linux-2.6-xen-sparse/mm/memory.c +++ b/linux-2.6-xen-sparse/mm/memory.c @@ -405,7 +405,7 @@ struct page *vm_normal_page(struct vm_area_struct *vma, unsigned long addr, pte_ * Remove this test eventually! */ if (unlikely(!pfn_valid(pfn))) { - if (!vma->vm_flags & VM_RESERVED) + if (!(vma->vm_flags & VM_RESERVED)) print_bad_pte(vma, pte, addr); return NULL; }